package com.zhuangjie.shop.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class DishCategorySaveDTO {

    @ApiModelProperty(value = "分类id")
    private Long id;

    @ApiModelProperty(value = "分类名")
    @NotNull(message = "分类名称不能为空")
    private String name;

    @ApiModelProperty(value = "排序字段")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    @NotNull(message = "状态不能为空（1，0）")
    private Integer status;

}
